package com.seashell.appstartupjob.job;

import com.seashell.appstartupjob.config.parser.IJobConfigParser;
import com.seashell.appstartupjob.listener.AbstractApplicationStartupListener;
import org.dom4j.Element;

/**
 * com.seashell.appstartupjob.job.AbstractJarRefJob
 * jar包关联任务抽象类
 *
 * @author Allen
 * @version v1.0
 * @date 2017/7/19
 */
public abstract class AbstractJarRefJob extends AbstractServletJob{

    protected Class<? extends AbstractApplicationStartupListener> jarRefClass;

    public AbstractJarRefJob(String jobName, Element configNode) {
        super(jobName, configNode);
    }

    public AbstractJarRefJob(String jobName, Class<? extends IJobConfigParser> parserClass, Element configNode) {
        super(jobName, parserClass, configNode);
    }

    public void setJarRefClass(Class<? extends AbstractApplicationStartupListener> clazz) {
        this.jarRefClass = clazz;
    }
}
